import {
	get,
	post,
	upLoadfile
} from 'utils/requests'
import {
	successMsg,
	errorMsg,
	showTitleModule,
	showCancelModule,
	showInputModule
} from 'utils/message.js'
import strFunc from 'utils/objects.js'
// import myIcon from "pages/components/common/icon"


/* 定义一个插件，为实例添加一些方法 */
export default {
	install(Vue) {
		console.info("plugin running")
		// 挂载全局使用的方法
		Vue.prototype.$get = get
		Vue.prototype.$post = post
		Vue.prototype.$upLoadfile = upLoadfile
		Vue.prototype.$successMsg = successMsg
		Vue.prototype.$errorMsg = errorMsg
		Vue.prototype.$showTitleModule = showTitleModule
		Vue.prototype.$showCancelModule = showCancelModule
		Vue.prototype.$showInputModule = showInputModule

		Vue.prototype.$strFunc = strFunc

		// /* 注册全局组件 */
		// Vue.component("my-icon",myIcon)
	}
}
